import request from "@/utils/request";

export interface anyObjmodel {
    [props:string]:any
}
export interface skuImageListModel{
    id: number,
    imgUrl:string
}
export interface skuSaleAttrValueListModel{
    id: number,
    saleAttrName: string,
    saleAttrValueName:string
}
export interface skuInfoModel{
    id: number,
    price: number,
    skuName:string,
    skuImageList: skuImageListModel[],
    skuSaleAttrValueList:skuSaleAttrValueListModel[]

}
export interface DetailListModel{
    skuInfo: skuInfoModel[],
}

export default {
    getDetailList(skuId:number) {
        return request.get<any,DetailListModel>(`/api/item/${ skuId }`)
    }
} 